#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char* argv[], char* env[])
{
    // env究竟是一个字符指针数组，还是一个字符串数组
    // char* demo1 = "hello world\n";
    // char* demo2 = (char*)malloc(128);
    // strcpy(demo2, "hello world");
    // printf("&demo1: %p, demo1: %p, &demo1 == demo1: %d\n", &demo1, demo1, (long long)&demo1 == (long long)demo1); // 栈与静态区
    // printf("&demo2: %p, demo2: %p, &demo2 == demo2: %d\n", &demo2, demo2, (long long)&demo2 == (long long)demo2); // 栈与堆
    int i = 0;
    for (i = 0; env[i]; i++)
        printf("&env[%d]: %p, env[%d]: %p\n", i, &env[i], i, env[i]);
    // env[i] = NULL

    return 11;
}
